/*
 * Copyright (c) 2018, apexes.net. All rights reserved.
 *
 *         http://www.apexes.net
 *
 */
package net.apexes.vertx;

import com.google.inject.AbstractModule;
import io.vertx.core.Vertx;

/**
 * @author <a href="mailto:hedyn@foxmail.com">HeDYn</a>
 */
class VertxModule extends AbstractModule {

    private final Vertx vertx;
    private final InjectorHolder holder;
    
    VertxModule(Vertx vertx, InjectorHolder holder) {
        this.vertx = vertx;
        this.holder = holder;
    }
    
    @Override
    protected void configure() {
        bind(Vertx.class).toInstance(vertx);
        bind(InjectorHolder.class).toInstance(holder);
    }
}
